#pragma once
#include "UIControl.h"
#include "DBProtocol.h"
enum
{
    Max_Show_User_Count = 4,
};

class CUIUserInfo : public CUIControl
{
public:
	CUIUserInfo(void);
	~CUIUserInfo(void);
	BOOL Create(CRect rcBound, CUIControl *pParent);
    virtual void Render(CDC *pDC);
	void RenderUserInfo(CDC *pDC, UserInfo &userInfo, CRect rc, BOOL bHover, BOOL bSelect);
	virtual BOOL OnLButtonDown(UINT nFlags, CPoint point);
	virtual BOOL OnMouseOver(UINT nFlags, CPoint point);

	int m_nHovered;
	int m_nSelected;
	CObjList<UserInfo> m_listUserInfo;
	CRect m_rcUserInfo[Max_Show_User_Count];
};
